package org.madgecko.basic.dao.iface;

import org.madgecko.basic.dao.IBaseDao;
import org.madgecko.basic.model.Module;
import org.madgecko.basic.model.Role;

import java.util.List;

/**
 * Created by MadGecko on 13-12-10.
 */
public interface IModuleDao extends IBaseDao<Module> {
    List<Module> listAllModule();
    List<Module> listModuleByRoles(List<Integer> roleIds);
	List<Module> listModuleByParent(int parentId);
	void deleteByParent(Integer parentId);
    List<Integer> listIdsByParent(Integer parentId);
}
